<script type='text/javascript'>
document.getElementById("para1").innerHTML = formatAMPM();

function formatAMPM() {
var d = new Date(),
    minutes = d.getMinutes().toString().length == 1 ? '0'+d.getMinutes() : d.getMinutes(),
    hours = d.getHours().toString().length == 1 ? '0'+d.getHours() : d.getHours(),
    ampm = d.getHours() >= 12 ? 'pm' : 'am',
    months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
    days = ['Sunday','Monday','Tueday','Wednesday','Thursday','Friday','Satday'];
return days[d.getDay()]+', '+months[d.getMonth()]+', '+d.getDate()+' '+d.getFullYear()+', '+hours+':'+minutes+' '+' '+ampm;
}
</script>